<%--
  Created by IntelliJ IDEA.
  User: LX
  Date: 2021/12/31
  Time: 11:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path=request.getContextPath();
String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <base href="<%=basePath%>>">
    <title>Title</title>
</head>
<body>
<center>
<h1>用户列表</h1>
<a href="<%=basePath%>view/system/sysUser/addSysUser.jsp">添加</a>
<hr/>
<table width="80%" border="1">
    <tr>
        <td>ID</td>
        <td>姓名</td>
        <td>性别</td>
        <td>年龄</td>
        <td>电话</td>
        <td>地址</td>
        <td>邮件</td>
        <td>用户名</td>
        <td>密码</td>
        <td colspan="3">操作</td>
    </tr>
    <c:forEach items="${sysUserList_db}" var="sysUser_db">
        <tr>
            <td>${sysUser_db.userId}</td>
            <td>${sysUser_db.name}</td>
            <td>${sysUser_db.sex}</td>
            <td>${sysUser_db.age}</td>
            <td>${sysUser_db.tel}</td>
            <td>${sysUser_db.address}</td>
            <td>${sysUser_db.email}</td>
            <td>${sysUser_db.username}</td>
            <td>${sysUser_db.password}</td>
            <td><a href="<%=basePath%>sysUserController/delete?userIdStr=${sysUser_db.userId}">删除</a></td>
            <td><a href="<%=basePath%>sysUserController/updateUI?userIdStr=${sysUser_db.userId}">修改</a></td>
            <td><a href="<%=basePath%>sysRoleController/FPRoleUI?userIdStr=${sysUser_db.userId}">分配角色</a></td>
        </tr>
    </c:forEach>
</table>
    <p><br></p>
    <input type="button" value="首页">
    <input type="button" value="上一页">
    <input type="button" value="1">
    <input type="button" value="2">
    <input type="button" value="3">
    <input type="button" value="4">
    <input type="button" value="5">
    <input type="button" value="6">
    <input type="button" value="7">
    <input type="button" value="8">
    <input type="button" value="9">
    <input type="button" value="10">
    <input type="button" value="下一页">
    <input type="button" value="尾页">
</center>
</body>
</html>
